package com.ttsx.pojo.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 分类导出视图对象
 *
 * @author wb
 * @since 2025-09-16
 */

@Data
public class CategoryEeVO {

    @ExcelProperty(value = "编号", index = 0)
    private Long id;

    @ExcelProperty(value = "上级分类ID", index = 1)
    @ColumnWidth(15)
    private Long parentId;

    @ExcelProperty(value = "分类名称", index = 2)
    @ColumnWidth(15)
    private String name;

    @ExcelProperty(value = "图片地址", index = 3)
    @ColumnWidth(40)
    private String imageUrl;

    @ExcelProperty(value = "分类描述", index = 4)
    @ColumnWidth(30)
    private String description;

    @ExcelProperty(value = "创建人ID", index = 5)
    @ColumnWidth(15)
    private Long createBy;

    @ExcelProperty(value = "创建时间", index = 6)
    @ColumnWidth(18)
    private LocalDateTime createTime;
}
